﻿using UnityEngine;
using System.Collections;

public class Player : MonoBehaviour {
	public float walkSpeed = 0.05f;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		Vector3 newCameraPosition = transform.position;
		if (Input.GetKey (KeyCode.RightArrow)) {
			newCameraPosition.x += walkSpeed;
		} else if (Input.GetKey (KeyCode.LeftArrow)) {
			newCameraPosition.x -= walkSpeed;
		}
		transform.position = newCameraPosition;
	}
}
